package delegate;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by thiswhyme on 2019/03/15.
 */
public class ProjectManager {

    private Map<String, IDeveloper> map = new HashMap<>();

    public ProjectManager() {
        map.put("java", new JavaDeveloper());
        map.put("android", new AndroidDeveloper());
    }

    public void delegate(String key) {
        map.get(key).develop();
    }
}
